package reflect;

import java.lang.reflect.Constructor;

public class ConstructorTest {
    public static void main(String[] args) {
        try {
            Class reflectUtilClass = Reflect.class;
            Constructor[] constructors = reflectUtilClass.getConstructors();
            Constructor constructor1 = reflectUtilClass.getConstructor(String[].class);
            System.out.println(constructor1);
            System.out.println("-------------------");
            for(Constructor constructor:constructors){
                System.out.println(constructor+":");
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
